package view.components;

import javax.swing.tree.DefaultMutableTreeNode;

public class TreeNode extends DefaultMutableTreeNode {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private final DefaultMutableTreeNode ip;
	private DefaultMutableTreeNode subnet;

	public TreeNode(String hostAdress) {
		ip = new DefaultMutableTreeNode(hostAdress);
	}

	public void setSubnet(String subnet) {
		this.subnet = new DefaultMutableTreeNode(subnet);
		ip.add(this.subnet);
	}

}
